package cn.simple.manager.todo;

import lombok.*;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false )
@NoArgsConstructor
@Entity
@Table(name = "users")
public class User {

    @Column
    @Id
    private String id;

    @Column
    private String username;

    @Column
    private String password;

    @Column
    private String name;

    @Column
    private String mobile;

    @Column
    private String description;

    @Column
    private String deleted;

    @Column
    private Boolean enabled;

    @Column
    private Boolean accountNonExpired;

    @Column
    private Boolean credentialsNonExpired;

    @Column
    private Boolean accountNonLocked;

    @Column
    private Timestamp createdTime;

    @Column
    private Timestamp updatedTime;

    @Column
    private String createdBy;

    @Column
    private String updatedBy;

}
